package com.chengwang.bookstory.mapper;

import com.chengwang.bookstory.pojo.AllOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface OrderMapper {



    void addOderOne(@Param("idNumMap") Map<String, Integer> idNumMap, @Param("orderId") String orderId);

    void addOrderAll(String userAccount, Long allMoney, String orderId);

    List<AllOrder> queryAllOrder(String userAccount);

    void deteAll(String userAccount, String orderId);

    void UpdateBad(String userAccount, String orderId);

    void UpdateOK(String userAccount, String orderId);

    List<AllOrder> mQueryAllOrder();

    List<AllOrder> queryOrderByMoney();

    List<AllOrder> queryAllOrderBySend();

    void sendOrder();

    List<AllOrder> queryOrderByNO();
}
